package com.safe.first.domain.order.model;

import com.safe.first.domain.order.constants.OrderType;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author Mickey
 * @since 2022/5/26
 **/
@Data
public class BaseOrder implements Order {

    private Long id;
    private Long uid;
    private BigDecimal totalFee;
    private OrderType type = OrderType.BASE;

    private BaseOrder() {

    }

    public BaseOrder(Long id, Long uid) {
        this.id = id;
        this.uid = uid;
    }

    @Override
    public OrderType getType() {
        return type;
    }

    @Override
    public BigDecimal getTotalFee() {
        return totalFee;
    }

}
